package com.ibr.ticketmanagement.app.data;

import android.content.ContentValues;

import com.ibr.ticketmanagement.app.util.DatabaseHandler;

/**
 * Created by Girishn on 08-05-2014.
 */
public class ActionPlan {
    int _id;
    int ticketId;
    int actionId;
    String name;
    String wWStart;
    String actionPlan;
    String siteContact;
    String siteAccess;
    boolean fe_report_created = false;
    long ap_order;

    public ActionPlan(int _id, int ticketId, int actionId, String name, String wWStart, String actionPlan, String siteContact, String siteAccess, boolean fe_report_created, long ap_order) {
        this._id = _id;
        this.ticketId = ticketId;
        this.actionId = actionId;
        this.name = name;
        this.wWStart = wWStart;
        this.actionPlan = actionPlan;
        this.siteContact = siteContact;
        this.siteAccess = siteAccess;
        this.fe_report_created = fe_report_created;
        this.ap_order = ap_order;
    }

    public ActionPlan(int ticketId, int actionId, String name, String wWStart, String actionPlan, String siteContact, String siteAccess, boolean fe_report_created, long ap_order) {
        this.ticketId = ticketId;
        this.actionId = actionId;
        this.name = name;
        this.wWStart = wWStart;
        this.actionPlan = actionPlan;
        this.siteContact = siteContact;
        this.siteAccess = siteAccess;
        this.fe_report_created = fe_report_created;
        this.ap_order = ap_order;
    }

    public int getActionId() {
        return actionId;
    }

    public void setActionId(int actionId) {
        this.actionId = actionId;
    }

    public long getAp_order() {
        return ap_order;
    }

    public void setAp_order(long ap_order) {
        this.ap_order = ap_order;
    }

    public boolean isFe_report_created() {
        return fe_report_created;
    }

    public void setFe_report_created(boolean fe_report_created) {
        this.fe_report_created = fe_report_created;
    }

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public int getTicketId() {
        return ticketId;
    }

    public void setTicketId(int ticketId) {
        this.ticketId = ticketId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getwWStart() {
        return wWStart;
    }

    public void setwWStart(String wWStart) {
        this.wWStart = wWStart;
    }

    public String getActionPlan() {
        return actionPlan;
    }

    public void setActionPlan(String actionPlan) {
        this.actionPlan = actionPlan;
    }

    public String getSiteContact() {
        return siteContact;
    }

    public void setSiteContact(String siteContact) {
        this.siteContact = siteContact;
    }

    public String getSiteAccess() {
        return siteAccess;
    }

    public void setSiteAccess(String siteAccess) {
        this.siteAccess = siteAccess;
    }

    public ContentValues getContentValues() {
        ContentValues values = new ContentValues();
        values.put(DatabaseHandler.KEY_AP_TICKET_ID, this.ticketId);
        values.put(DatabaseHandler.KEY_AP_ACTION_ID, this.actionId);
        values.put(DatabaseHandler.KEY_AP_NAME, this.name);
        values.put(DatabaseHandler.KEY_AP_WWSTART, this.wWStart);
        values.put(DatabaseHandler.KEY_AP_ACTION_PLAN, this.actionPlan);
        values.put(DatabaseHandler.KEY_AP_SITE_CONTACT, this.siteContact);
        values.put(DatabaseHandler.KEY_AP_SITE_ACCESS, this.siteAccess);
        values.put(DatabaseHandler.KEY_FE_REPORT_CREATED, String.valueOf(this.fe_report_created));
        values.put(DatabaseHandler.KEY_AP_ORDER, this.ap_order);
        return values;
    }
}